package com.fuxin.mywiki1.controller;

import com.fuxin.mywiki1.domain.Demo;
import com.fuxin.mywiki1.service.DemoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
/*@RequestMapping("demo")*/
public class DemoController {
    	 @Resource
         private DemoService demoService;
         @GetMapping("demo/list")
         public List<Demo> list(){
             return demoService.list();
         }

}
